package com.designpattern.template;

/**
 * 模版类
 */
public abstract class QuestionTemplate {

    /**
     * 特定步骤1
     */
    public abstract void question1();

    /**
     * 特定步骤2
     */
    public abstract void question2();

    /**
     * 特定步骤3
     */
    public abstract void question3();

    /**
     * 算法结构
     */
    public void questionMethod() {
        System.out.println("问题1：....");
        question1();
        System.out.println("问题2：....");
        question2();
        System.out.println("问题3：....");
        question3();
    }

}
